package com.canbot.u05.activity.guide;

import android.os.Bundle;
import android.view.View;

import com.canbot.u05.R;
import com.canbot.u05.activity.BaseActivityNoTitle;
import com.canbot.u05.utils.ConstUtils;
import com.canbot.u05.view.MyBaseFrameView;

/**
 * Created by zmp on 2017/5/22.
 * 导览保存任务成功提示界面
 */

public class GuideSplashSaveActivity extends BaseActivityNoTitle implements View.OnClickListener {

        private MyBaseFrameView myBaseFrameView;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.guide_splash_save_activity);
                findViewById(R.id.guide_splash_yes).setOnClickListener(this);
                myBaseFrameView = (MyBaseFrameView) findViewById(R.id.guide_splash_fafsd);
                String pathDir = ConstUtils.PATH_SD + "/ai/u5/uuimage/guide/savetask/";
                myBaseFrameView.setBitmapDir(pathDir);
        }

        @Override
        public void onClick(View v) {
                switch (v.getId()) {
                        case R.id.guide_splash_yes:
                                finish();
                                overridePendingTransition(R.anim.face_zoom_enter,
                                        R.anim.face_zoom_exit);
                                break;
                }
        }

        @Override
        protected void onResume() {
                super.onResume();
                myBaseFrameView.onResme();
        }

        @Override
        protected void onPause() {
                super.onPause();
                myBaseFrameView.onPause();
        }
}
